<?php
require_once ("../db/connectdatabase.php");

function deleteApplyWeb($id) {
	$con = new ConnectDB();
	
	$tbl = "registry_apply_web";
	$fn = array('delFlg' => 1);
	$conf = array('id' => $id);
	return $con -> update($tbl, $fn, $conf);
}

$action = $_POST['act'];
if($action == "del") {
	$result = false;
	if(isset($_POST['idre'])) {
		$iduudai = $_POST['idre'];
		if(deleteApplyWeb($iduudai)) {
			$result = true;
		}
	}
	echo json_encode($result);
}
?>